﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity.Customer
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class CustomerInfo : BaseEntity
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [Column(TypeName = "nvarchar(16)")]
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Column(TypeName = "nvarchar(32)")]
        public string PassWord { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Column(TypeName = "varchar(4)")]
        public string Sex { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 身份证
        /// </summary>
        [Column(TypeName = "varchar(18)")]
        public string ID_Card { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Column(TypeName = "varchar(11)")]
        public string Phone { get; set; }
        /// <summary>
        /// 是否会员
        /// </summary>
        public bool IsVip { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}




